package com.lyx.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author lyx
 * @since 2022-02-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("air_quality_index")
@ApiModel(value="AirQualityIndex对象", description="")
public class AirQualityIndex implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "记录编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "区域编号")
    private Integer districtId;

    @ApiModelProperty(value = "检测事件")
    private Date monitorTime;

    @ApiModelProperty(value = "pm10的值")
    private Integer pm10;

    @ApiModelProperty(value = "pm2.5的值")
    private Integer pm25;

    @ApiModelProperty(value = "监测站")
    private String monitoringStation;

    @ApiModelProperty(value = "最后更改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date lastModifyTime;

    @ApiModelProperty(value = "区域名")
    @TableField(exist = false)
    private String name;

}
